package com.ruoyi.project.schedule.task.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 【请填写功能名称】对象 task
 * 
 * @author ruoyi
 * @date 2020-04-16
 */
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务id */
    private Long taskId;

    /** 任务标题 */
    @Excel(name = "任务标题")
    private String taskTitle;

    /** 任务创建人姓名 */
    @Excel(name = "任务创建人姓名")
    private String taskCreateName;

    /** 任务创建人id */
    @Excel(name = "任务创建人id")
    private Long taskCreateId;

    /**  0一般 1紧急 */
    @Excel(name = " 0一般 1紧急")
    private Integer taskType;

    /** 任务执行人姓名 */
    @Excel(name = "任务执行人姓名")
    private String taskUser;

    /** 任务执行人id */
    @Excel(name = "任务执行人id")
    private Long taskUserId;

    /** 任务创建时间 */
    @Excel(name = "任务创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date taskCreateTime;

    /** 任务开始时间 */
    @Excel(name = "任务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date taskStartTime;

    /** 任务完成时间 */
    @Excel(name = "任务完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date taskStopTime;

    /** 任务内容 */
    @Excel(name = "任务内容")
    private String taskContent;

    /** 任务文件 */
    @Excel(name = "任务文件")
    private String taskFile;

    /** 任务状态 0未完成 1完成 */
    @Excel(name = "任务状态 0未完成 1完成")
    private Integer taskStatus;

    /** 完成情况 */
    @Excel(name = "完成情况")
    private String taskSituation;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long taskSort;

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setTaskTitle(String taskTitle) 
    {
        this.taskTitle = taskTitle;
    }

    public String getTaskTitle() 
    {
        return taskTitle;
    }
    public void setTaskCreateName(String taskCreateName) 
    {
        this.taskCreateName = taskCreateName;
    }

    public String getTaskCreateName() 
    {
        return taskCreateName;
    }
    public void setTaskCreateId(Long taskCreateId) 
    {
        this.taskCreateId = taskCreateId;
    }

    public Long getTaskCreateId() 
    {
        return taskCreateId;
    }
    public void setTaskType(Integer taskType) 
    {
        this.taskType = taskType;
    }

    public Integer getTaskType() 
    {
        return taskType;
    }
    public void setTaskUser(String taskUser) 
    {
        this.taskUser = taskUser;
    }

    public String getTaskUser() 
    {
        return taskUser;
    }
    public void setTaskUserId(Long taskUserId) 
    {
        this.taskUserId = taskUserId;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    public Long getTaskUserId() 
    {
        return taskUserId;
    }
    public void setTaskCreateTime(Date taskCreateTime) 
    {
        this.taskCreateTime = taskCreateTime;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    public Date getTaskCreateTime() 
    {
        return taskCreateTime;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    public void setTaskStartTime(Date taskStartTime) 
    {
        this.taskStartTime = taskStartTime;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    public Date getTaskStartTime() 
    {
        return taskStartTime;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    public void setTaskStopTime(Date taskStopTime) 
    {
        this.taskStopTime = taskStopTime;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    public Date getTaskStopTime() 
    {
        return taskStopTime;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    public void setTaskContent(String taskContent) 
    {
        this.taskContent = taskContent;
    }

    public String getTaskContent() 
    {
        return taskContent;
    }
    public void setTaskFile(String taskFile) 
    {
        this.taskFile = taskFile;
    }

    public String getTaskFile() 
    {
        return taskFile;
    }
    public void setTaskStatus(Integer taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public Integer getTaskStatus() 
    {
        return taskStatus;
    }
    public void setTaskSituation(String taskSituation) 
    {
        this.taskSituation = taskSituation;
    }

    public String getTaskSituation() 
    {
        return taskSituation;
    }
    public void setTaskSort(Long taskSort) 
    {
        this.taskSort = taskSort;
    }

    public Long getTaskSort() 
    {
        return taskSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("taskTitle", getTaskTitle())
            .append("taskCreateName", getTaskCreateName())
            .append("taskCreateId", getTaskCreateId())
            .append("taskType", getTaskType())
            .append("taskUser", getTaskUser())
            .append("taskUserId", getTaskUserId())
            .append("taskCreateTime", getTaskCreateTime())
            .append("taskStartTime", getTaskStartTime())
            .append("taskStopTime", getTaskStopTime())
            .append("taskContent", getTaskContent())
            .append("taskFile", getTaskFile())
            .append("taskStatus", getTaskStatus())
            .append("taskSituation", getTaskSituation())
            .append("taskSort", getTaskSort())
            .toString();
    }
}
